import fetcher from "../apis/Fetcher";

export function getUnconsumedNotifications() {
    return fetcher.get<Array<NotificationResponse>>("notifications")
}

export type NotificationType = "SUBMITTED_MARKET_ORDER" | "CONFIRMED_MARKET_ORDER"

export interface NotificationResponse {
    id: number
    type: NotificationType
    data?: any
}